<!DOCTYPE HTML>
<html lang="zh-cn">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="Markdown语法基础, 原初视界">
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>Markdown语法基础 | 原初视界</title>
    <link rel="icon" type="image/png" href="/favicon.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>

<meta name="generator" content="Hexo 5.3.0"></head>




<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/logo.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">原初视界</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>首页</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/categories" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>分类</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/archives" class="waves-effect waves-light">
      
      <i class="fas fa-archive" style="zoom: 0.6;"></i>
      
      <span>归档</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="Search" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>


<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">原初视界</div>
        <div class="logo-desc">
            
            Never really desperate, only the lost of the soul.
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			分类
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			归档
		</a>
          
        </li>
        
        
    </ul>
</div>


        </div>

        
    </nav>

</header>

    



<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/featureimages/13.jpg')">
    <div class="container" style="right: 0px;left: 0px;">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <h1 class="description center-align post-title">Markdown语法基础</h1>
                </div>
            </div>
        </div>
    </div>
</div>




<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        width: 345px;
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        padding: 35px 0 15px 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content {
        padding-bottom: 30px;
        overflow: auto;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;

        position: absolute;
        right: 23.5vw;
        display: block;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px;
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                          <div class="article-tag">
                            <span class="chip bg-color">No tag</span>
                          </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                </div>
            </div>

            <div class="post-info">
                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-minus fa-fw"></i>Publish Date:&nbsp;&nbsp;
                    2021-02-09
                </div>
                

                

                

                

                
            </div>
        </div>
        <hr class="clearfix">

        

        

        <div class="card-content article-card-content">
            <div id="articleContent">
                <hr>
<h2 id="title-Markdown语法基础"><a href="#title-Markdown语法基础" class="headerlink" title="title: Markdown语法基础"></a>title: Markdown语法基础</h2><p>Markdown是一种轻量级标记语言，排版语法简洁，让人们更多地关注内容本身而非排版。它使用易读易写的纯文本格式编写文档，可与HTML混编，可导出 HTML、PDF 以及本身的 .md 格式的文件。因简洁、高效、易读、易写，Markdown被大量使用。</p>
<p>[toc]</p>
<h2 id="一、基本语法"><a href="#一、基本语法" class="headerlink" title="一、基本语法"></a>一、基本语法</h2><h3 id="1-目录语法"><a href="#1-目录语法" class="headerlink" title="1. 目录语法"></a>1. 目录语法</h3><p>目录语法使用<code>[toc]</code></p>
<blockquote>
<p>[toc]</p>
</blockquote>
<h3 id="2-标题语法"><a href="#2-标题语法" class="headerlink" title="2. 标题语法"></a>2. 标题语法</h3><p>不同数量的<code>#</code>可以完成不同的标题，如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"># 一级标题</span><br><span class="line">## 二级标题</span><br><span class="line">### 三级标题</span><br></pre></td></tr></table></figure>
<p>预览如下：</p>
<blockquote>
<h1 id="一级标题"><a href="#一级标题" class="headerlink" title="一级标题"></a>一级标题</h1><h2 id="二级标题"><a href="#二级标题" class="headerlink" title="二级标题"></a>二级标题</h2><h3 id="三级标题"><a href="#三级标题" class="headerlink" title="三级标题"></a>三级标题</h3></blockquote>
<h3 id="3-强调语法"><a href="#3-强调语法" class="headerlink" title="3. 强调语法"></a>3. 强调语法</h3><h4 id="3-1-粗体"><a href="#3-1-粗体" class="headerlink" title="3.1. 粗体"></a>3.1. 粗体</h4><p>要加粗文本，请在单词或短语的前后各添加两个星号（asterisks）或下划线（underscores）。如需加粗一个单词或短语的中间部分用以表示强调的话，请在要加粗部分的两侧各添加两个星号（asterisks）。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">这是**单词粗体**</span><br><span class="line">这是 __下划线粗体__</span><br><span class="line">__整行下划线粗体__</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是<strong>单词粗体</strong><br>这是 <strong>下划线粗体</strong><br><strong>整行下划线粗体</strong></p>
</blockquote>
<h4 id="3-2-斜体"><a href="#3-2-斜体" class="headerlink" title="3.2. 斜体"></a>3.2. 斜体</h4><p>要用斜体显示文本，请在单词或短语前后添加一个星号（asterisk）或下划线（underscore）。要斜体突出单词的中间部分，请在字母前后各添加一个星号，中间不要带空格。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">这是*星号斜体无空格* </span><br><span class="line">这是 _下划线斜体有空格_</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是<em>星号斜体无空格</em><br>这是 <em>下划线斜体有空格</em></p>
</blockquote>
<h4 id="3-3-粗体和斜体"><a href="#3-3-粗体和斜体" class="headerlink" title="3.3. 粗体和斜体"></a>3.3. 粗体和斜体</h4><p>要同时用粗体和斜体突出显示文本，请在单词或短语的前后各添加三个星号或下划线。要加粗并用斜体显示单词或短语的中间部分，请在要突出显示的部分前后各添加三个星号，中间不要带空格。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">这是 ***粗体和斜体*** 的</span><br><span class="line">这是 ___粗体和斜体有空格___</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是 <strong><em>粗体和斜体</em></strong> 的<br>这是 <strong><em>粗体和斜体有空格</em></strong></p>
</blockquote>
<h3 id="4-块引用语法"><a href="#4-块引用语法" class="headerlink" title="4. 块引用语法"></a>4. 块引用语法</h3><h4 id="4-1-单行引用"><a href="#4-1-单行引用" class="headerlink" title="4.1. 单行引用"></a>4.1. 单行引用</h4><p>要创建块引用，请在段落前添加一个<code>&gt;</code>符号。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&gt; 这是引用</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是引用</p>
</blockquote>
<h4 id="4-2-多段落引用"><a href="#4-2-多段落引用" class="headerlink" title="4.2. 多段落引用"></a>4.2. 多段落引用</h4><p>块引用可以包含多个段落。为段落之间的空白行添加一个<code>&gt;</code>符号。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&gt; 这是多段落一</span><br><span class="line">&gt;</span><br><span class="line">&gt; 这是多段落二</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是多段落一</p>
<p>这是多段落二</p>
</blockquote>
<h4 id="4-3-嵌套引用"><a href="#4-3-嵌套引用" class="headerlink" title="4.3. 嵌套引用"></a>4.3. 嵌套引用</h4><p>块引用可以嵌套。在要嵌套的段落前添加一个<code>&gt;&gt;</code> 符号。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&gt; 这是多段落一</span><br><span class="line">&gt;&gt; 这是多段落二级引用</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是多段落一</p>
<blockquote>
<p>这是多段落二级引用</p>
</blockquote>
</blockquote>
<h3 id="5-列表语法"><a href="#5-列表语法" class="headerlink" title="5. 列表语法"></a>5. 列表语法</h3><h4 id="5-1-有序列表"><a href="#5-1-有序列表" class="headerlink" title="5.1. 有序列表"></a>5.1. 有序列表</h4><p>要创建有序列表，请在每个列表项前添加数字并紧跟一个英文句点。数字不必按数学顺序排列，但是列表应当以数字 1 起始。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">1. aa</span><br><span class="line">2. bb</span><br><span class="line">3. cc</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<ol>
<li>aa</li>
<li>bb</li>
<li>cc</li>
</ol>
</blockquote>
<h4 id="5-2-无序列表"><a href="#5-2-无序列表" class="headerlink" title="5.2. 无序列表"></a>5.2. 无序列表</h4><p>要创建无序列表，请在每个列表项前面添加破折号 (-)、星号 (*) 或加号 (+) 。缩进一个或多个列表项可创建嵌套列表。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">- aa</span><br><span class="line">- bb</span><br><span class="line">- cc</span><br><span class="line">* aaa</span><br><span class="line">* bbb</span><br><span class="line">* ccc</span><br><span class="line">+ aaaa</span><br><span class="line">  - aa-1</span><br><span class="line">  - aa-2</span><br><span class="line">+ bbbb</span><br><span class="line">  * bb-1</span><br><span class="line">  * bb-2</span><br><span class="line">+ cccc</span><br><span class="line">  + cc-1</span><br><span class="line">  + cc-2</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<ul>
<li>aa</li>
<li>bb</li>
<li>cc</li>
</ul>
<ul>
<li>aaa</li>
<li>bbb</li>
<li>ccc</li>
</ul>
<ul>
<li>aaaa<ul>
<li>aa-1</li>
<li>aa-2</li>
</ul>
</li>
<li>bbbb<ul>
<li>bb-1</li>
<li>bb-2</li>
</ul>
</li>
<li>cccc<ul>
<li>cc-1</li>
<li>cc-2</li>
</ul>
</li>
</ul>
</blockquote>
<h3 id="6-代码语法"><a href="#6-代码语法" class="headerlink" title="6. 代码语法"></a>6. 代码语法</h3><p>要创建代码块，请将代码块的每一行缩进至少四个空格或一个制表符。</p>
<pre><code>&lt;html&gt;
   &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;这是html代&lt;b&gt;码&lt;/b&gt;块&lt;font color=blue&gt;语&lt;/font&gt;法&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>ps: 要创建不用缩进的代码块，请使用围栏代码块。</p>
<h3 id="7-分割线语法"><a href="#7-分割线语法" class="headerlink" title="7. 分割线语法"></a>7. 分割线语法</h3><p>要创建分隔线，请在单独一行上使用三个或多个星号 <code>***</code>、破折号 <code>---</code> 或下划线 <code>___</code> ，并且不能包含其他内容。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">下面是分割线</span><br><span class="line">___</span><br><span class="line">上面是分割线，下面还是分割线</span><br><span class="line">***</span><br><span class="line">-----</span><br><span class="line">上面是分割线</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>下面是分割线</p>
<hr>
<p>上面是分割线，下面还是分割线</p>
<hr>
<hr>
<p>上面是分割线</p>
</blockquote>
<h3 id="8-超链接语法"><a href="#8-超链接语法" class="headerlink" title="8. 超链接语法"></a>8. 超链接语法</h3><p>链接文本放在中括号<code>[]</code>内，链接地址放在后面的小括号<code>()</code>中，链接title可选。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">这是一个超链接： [原初](http:&#x2F;&#x2F;yuanchu.gitee.io&#x2F; &quot;超链接title&quot;)</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>这是一个超链接： <a href="http://yuanchu.gitee.io/" title="超链接title">原初</a></p>
</blockquote>
<h3 id="9-图片语法"><a href="#9-图片语法" class="headerlink" title="9. 图片语法"></a>9. 图片语法</h3><h4 id="9-1-图片引用"><a href="#9-1-图片引用" class="headerlink" title="9.1. 图片引用"></a>9.1. 图片引用</h4><p>要添加图像，请使用感叹号 <code>!</code>, 然后在方括号增加替代文本，图片链接放在小括号<code>()</code>里，括号里的链接后可以增加一个可选的图片标题文本。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">![图片alt](https:&#x2F;&#x2F;gitee.com&#x2F;yuanchu&#x2F;imagebed&#x2F;raw&#x2F;master&#x2F;uPic&#x2F;原初.png &quot;图片title&quot;)</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p><img src="https://gitee.com/yuanchu/imagebed/raw/master/uPic/%E5%8E%9F%E5%88%9D.png" alt="图片alt" title="图片title"></p>
</blockquote>
<h4 id="9-2-图片链接"><a href="#9-2-图片链接" class="headerlink" title="9.2. 图片链接"></a>9.2. 图片链接</h4><p>给图片增加链接，请将图像的Markdown括在方括号<code>[]</code>中，然后将链接添加在圆括号<code>()</code>中。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[![图片alt](https:&#x2F;&#x2F;gitee.com&#x2F;yuanchu&#x2F;imagebed&#x2F;raw&#x2F;master&#x2F;uPic&#x2F;原初.png &quot;图片title&quot;)](链接文字)</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p><a href="%E9%93%BE%E6%8E%A5%E6%96%87%E5%AD%97"><img src="https://gitee.com/yuanchu/imagebed/raw/master/uPic/%E5%8E%9F%E5%88%9D.png" alt="图片alt" title="图片title"></a></p>
</blockquote>
<h3 id="10-转义字符语法"><a href="#10-转义字符语法" class="headerlink" title="10. 转义字符语法"></a>10. 转义字符语法</h3><h4 id="10-1-直接转义"><a href="#10-1-直接转义" class="headerlink" title="10.1. 直接转义"></a>10.1. 直接转义</h4><p>要显示原本用于格式化 Markdown 文档的字符，请在字符前面添加反斜杠字符<code>\</code></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">\* 加反斜杠后原文输出</span><br></pre></td></tr></table></figure>
<p>预览如下:</p>
<blockquote>
<p>* 加反斜杠后原文输出</p>
</blockquote>
<table>
<thead>
<tr>
<th align="center">字符</th>
<th align="left">说明</th>
</tr>
</thead>
<tbody><tr>
<td align="center">\</td>
<td align="left">backslash</td>
</tr>
<tr>
<td align="center">`</td>
<td align="left">backtick</td>
</tr>
<tr>
<td align="center">*</td>
<td align="left">asterisk</td>
</tr>
<tr>
<td align="center">_</td>
<td align="left">underscore</td>
</tr>
<tr>
<td align="center">{}</td>
<td align="left">curly braces</td>
</tr>
<tr>
<td align="center">[]</td>
<td align="left">brackets</td>
</tr>
<tr>
<td align="center">()</td>
<td align="left">parentheses</td>
</tr>
<tr>
<td align="center">#</td>
<td align="left">pound sign</td>
</tr>
<tr>
<td align="center">+</td>
<td align="left">plus sign</td>
</tr>
<tr>
<td align="center">-</td>
<td align="left">minus sign (hyphen)</td>
</tr>
<tr>
<td align="center">.</td>
<td align="left">dot</td>
</tr>
<tr>
<td align="center">!</td>
<td align="left">exclamation mark</td>
</tr>
<tr>
<td align="center">|</td>
<td align="left">pipe</td>
</tr>
</tbody></table>
<h4 id="10-2-特殊字符自动转义"><a href="#10-2-特殊字符自动转义" class="headerlink" title="10.2. 特殊字符自动转义"></a>10.2. 特殊字符自动转义</h4><p>在 HTML 文件中，有两个字符需要特殊处理： <code>&lt;</code> 和 <code>&amp;</code>，转义成：<code>&amp;lt;</code> 和 <code>&amp;amp;</code></p>
<h3 id="11-内嵌-HTML-标签"><a href="#11-内嵌-HTML-标签" class="headerlink" title="11. 内嵌 HTML 标签"></a>11. 内嵌 HTML 标签</h3><p>对于 Markdown 涵盖范围之外的标签，都可以直接在文件里面用 HTML 本身。如需使用 HTML，不需要额外标注这是 HTML 或是 Markdown，只需 HTML 标签添加到 Markdown 文本中即可。</p>
<h4 id="11-1-行级內联标签"><a href="#11-1-行级內联标签" class="headerlink" title="11.1. 行级內联标签"></a>11.1. 行级內联标签</h4><p>HTML 的行级內联标签如 <code>&lt;span&gt;</code>、<code>&lt;cite&gt;</code>、<code>&lt;del&gt;</code> 不受限制，可以在 Markdown 的段落、列表或是标题里任意使用。依照个人习惯，甚至可以不用 Markdown 格式，而采用 HTML 标签来格式化。例如：如果比较喜欢 HTML 的 <code>&lt;a&gt;</code> 或 <code>&lt;img&gt;</code> 标签，可以直接使用这些标签，而不用 Markdown 提供的链接或是图片语法。当你需要更改元素的属性时（例如为文本指定颜色或更改图像的宽度），使用 HTML 标签更方便些。<br>HTML 行级內联标签和区块标签不同，在內联标签的范围内， Markdown 的语法是可以解析的。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">这是Markdown**加粗**. 这是HTML&lt;b&gt;加粗&lt;&#x2F;b&gt;&lt;em&gt;斜体&lt;&#x2F;em&gt;。可&lt;i&gt;直&lt;&#x2F;i&gt;接使用。</span><br></pre></td></tr></table></figure>
<p>预览如下：</p>
<blockquote>
<p>这是Markdown<strong>加粗</strong>. 这是HTML<b>加粗</b><em>斜体</em>。可<i>直</i>接使用。</p>
</blockquote>
<h4 id="11-2-区块标签"><a href="#11-2-区块标签" class="headerlink" title="11.2. 区块标签"></a>11.2. 区块标签</h4><p>区块元素──比如 <code>&lt;div&gt;</code>、<code>&lt;table&gt;</code>、<code>&lt;pre&gt;</code>、<code>&lt;p&gt;</code> 等标签，必须在前后加上空行，以便于内容区分。而且这些元素的开始与结尾标签，不可以用 tab 或是空白来缩进。Markdown 会自动识别这区块元素，避免在区块标签前后加上没有必要的 <code>&lt;p&gt;</code> 标签。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">这是markdown自然段</span><br><span class="line">&lt;table&gt;</span><br><span class="line">    &lt;tr&gt;</span><br><span class="line">        &lt;td&gt;这是&lt;&#x2F;td&gt;</span><br><span class="line">        &lt;td&gt;表格&lt;&#x2F;td&gt;</span><br><span class="line">    &lt;&#x2F;tr&gt;</span><br><span class="line">    &lt;tr&gt;</span><br><span class="line">        &lt;td&gt;html&lt;&#x2F;td&gt;</span><br><span class="line">        &lt;td&gt;php&lt;&#x2F;td&gt;</span><br><span class="line">    &lt;&#x2F;tr&gt;</span><br><span class="line">&lt;&#x2F;table&gt;</span><br><span class="line">这是markdown自然段</span><br></pre></td></tr></table></figure>
<p>预览如下：<br>这是markdown自然段</p>
<table>
    <tr>
        <td>这是</td>
        <td>表格</td>
    </tr>
    <tr>
        <td>html</td>
        <td>php</td>
    </tr>
</table>
这是markdown自然段

<h2 id="二、扩展语法"><a href="#二、扩展语法" class="headerlink" title="二、扩展语法"></a>二、扩展语法</h2><h3 id="1-表格"><a href="#1-表格" class="headerlink" title="1. 表格"></a>1. 表格</h3><p>要添加表，请使用三个或多个连字符<code>---</code>创建每列的标题，并使用管道<code>|</code>分隔每列。您可以选择在表的任一端添加管道。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">| 表头 | 表头字段 | 表头 |</span><br><span class="line">| --- | ------- |--- | </span><br><span class="line">| 单元格 | 单元格 |单元格 |</span><br><span class="line">| 单元格| 单元格 | 单元格 |</span><br></pre></td></tr></table></figure>
<p>预览如下：<br>| 表头 | 表头字段 | 表头 |<br>| — | ——- |— |<br>| 单元格 | 单元格 |单元格 |<br>| 单元格| 单元格 | 单元格 |</p>
<h4 id="1-1-对齐"><a href="#1-1-对齐" class="headerlink" title="1.1. 对齐"></a>1.1. 对齐</h4><p>通过在标题行中的连字符的左侧，右侧或两侧添加冒号<code>:</code>，将列中的文本对齐到左侧，右侧或中心。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">| 表头 | 表头字段 | 表头 |</span><br><span class="line">| :--- | :----------: | ---: |</span><br><span class="line">| 左格 | 居中 |右对齐 |</span><br><span class="line">| 单元格| 单元格 | 右单元格 |</span><br></pre></td></tr></table></figure>
<p>预览如下：<br>| 表头 | 表头字段 | 表头 |<br>| :— | :———-: | —: |<br>| 左格 | 居中 |右对齐 |<br>| 单元格| 单元格 | 右单元格 |</p>
<h4 id="1-2-格式化表格中的文字"><a href="#1-2-格式化表格中的文字" class="headerlink" title="1.2. 格式化表格中的文字"></a>1.2. 格式化表格中的文字</h4><p>可以在表格中设置文本格式。例如，您可以添加链接，代码（仅反引号 ` 中的单词或短语，而不是代码块）和强调。但不能添加标题，块引用，列表，水平规则，图像或HTML标签。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">| 表头 | 表头字段 | 表头 |</span><br><span class="line">| :--- | :----------: | ---: |</span><br><span class="line">| 左格 |  [原初](http:&#x2F;&#x2F;yuanchu.gitee.io&#x2F; &quot;超链接title&quot;) |右对齐 |</span><br><span class="line">| **单元格** | _单元格_ | 右单元格 |</span><br></pre></td></tr></table></figure>
<p>预览如下：</p>
<table>
<thead>
<tr>
<th align="left">表头</th>
<th align="center">表头字段</th>
<th align="right">表头</th>
</tr>
</thead>
<tbody><tr>
<td align="left">左格</td>
<td align="center"><a href="http://yuanchu.gitee.io/" title="超链接title">原初</a></td>
<td align="right">右对齐</td>
</tr>
<tr>
<td align="left"><strong>单元格</strong></td>
<td align="center"><em>单元格</em></td>
<td align="right">右单元格</td>
</tr>
</tbody></table>
<h4 id="1-3-在表中转义管道字符"><a href="#1-3-在表中转义管道字符" class="headerlink" title="1.3. 在表中转义管道字符"></a>1.3. 在表中转义管道字符</h4><p>以使用表格的HTML字符代码<code>&amp;#124;</code>在表中显示竖线<code>|</code>字符。</p>
<h3 id="2-围栏代码块"><a href="#2-围栏代码块" class="headerlink" title="2. 围栏代码块"></a>2. 围栏代码块</h3><h4 id="2-1-基本使用"><a href="#2-1-基本使用" class="headerlink" title="2.1. 基本使用"></a>2.1. 基本使用</h4><p>通过将行缩进四个空格或一个制表符来创建代码块。如果发现不方便，请尝试使用受保护的代码块。根据Markdown处理器或编辑器的不同，您将在代码块之前和之后的行上使用三个反引号( ``` ） 或三个波浪号<code>~~~</code>。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">&#96;&#96;&#96;</span><br><span class="line">&#123;</span><br><span class="line">  &quot;firstName&quot;: &quot;John&quot;,</span><br><span class="line">  &quot;lastName&quot;: &quot;Smith&quot;,</span><br><span class="line">  &quot;age&quot;: 25</span><br><span class="line">&#125;</span><br><span class="line">&#96;&#96;&#96;</span><br></pre></td></tr></table></figure>


<h4 id="2-2-语法高亮"><a href="#2-2-语法高亮" class="headerlink" title="2.2. 语法高亮"></a>2.2. 语法高亮</h4><p>许多Markdown处理器都支持受围栏代码块的语法突出显示。使用此功能，您可以为编写代码的任何语言添加颜色突出显示。要添加语法突出显示，请在受防护的代码块之前的反引号旁边指定一种语言。</p>
<p>支持以下语言种类：</p>
<blockquote>
<p>bash<br>clojure，cpp，cs，css<br>dart，dockerfile, diff<br>erlang<br>go，gradle，groovy<br>haskell<br>java，javascript，json，julia<br>kotlin<br>lisp，lua<br>makefile，markdown，matlab<br>objectivec<br>perl，php，python<br>r，ruby，rust<br>scala，shell，sql，swift<br>tex，typescript<br>verilog，vhdl<br>xml<br>yaml</p>
</blockquote>
<p>举例：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">&#96;&#96;&#96;json</span><br><span class="line">&#123;</span><br><span class="line">  &quot;firstName&quot;: &quot;John&quot;,</span><br><span class="line">  &quot;lastName&quot;: &quot;Smith&quot;,</span><br><span class="line">  &quot;age&quot;: 25</span><br><span class="line">&#125;</span><br><span class="line">&#96;&#96;&#96;</span><br></pre></td></tr></table></figure>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">  <span class="attr">&quot;firstName&quot;</span>: <span class="string">&quot;John&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;lastName&quot;</span>: <span class="string">&quot;Smith&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;age&quot;</span>: <span class="number">25</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">&#96;&#96;&#96;java</span><br><span class="line">&#x2F;&#x2F; FileName: HelloWorld.java</span><br><span class="line">public class HelloWorld &#123;</span><br><span class="line">  &#x2F;&#x2F; Java 入口程序，程序从此入口</span><br><span class="line">  public static void main(String[] args) &#123;</span><br><span class="line">    System.out.println(&quot;Hello,World!&quot;); &#x2F;&#x2F; 向控制台打印一条语句</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line">&#96;&#96;&#96;</span><br></pre></td></tr></table></figure>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// FileName: HelloWorld.java</span></span><br><span class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">HelloWorld</span> </span>&#123;</span><br><span class="line">  <span class="comment">// Java 入口程序，程序从此入口</span></span><br><span class="line">  <span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span> </span>&#123;</span><br><span class="line">    System.out.println(<span class="string">&quot;Hello,World!&quot;</span>); <span class="comment">// 向控制台打印一条语句</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h3 id="3-脚注"><a href="#3-脚注" class="headerlink" title="3. 脚注"></a>3. 脚注</h3><p>脚注使您可以添加注释和参考，而不会使文档正文混乱。当您创建脚注时，带有脚注的上标数字会出现在您添加脚注参考的位置。读者可以单击链接以跳至页面底部的脚注内容。</p>
<p>要创建脚注参考，请在方括号<code>[^1]</code>内添加插入符号和标识符。标识符可以是数字或单词，但不能包含空格或制表符。标识符仅将脚注参考与脚注本身相关联-在输出中，脚注按顺序编号。</p>
<p>在括号内使用另一个插入符号和数字添加脚注，并用冒号和文本<code>[^1]: 脚注.</code>。您不必在文档末尾添加脚注。您可以将它们放在除列表，块引号和表之类的其他元素之外的任何位置。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">这是脚注样[^1]例</span><br><span class="line"></span><br><span class="line">[^1]: 脚注详细说明文字</span><br></pre></td></tr></table></figure>
<blockquote>
<p>这是脚注样<a href="%E8%84%9A%E6%B3%A8%E8%AF%A6%E7%BB%86%E8%AF%B4%E6%98%8E%E6%96%87%E5%AD%97">^1</a>例</p>
</blockquote>
<h3 id="4-标题编号"><a href="#4-标题编号" class="headerlink" title="4. 标题编号"></a>4. 标题编号</h3><h4 id="4-1-书写标题编号"><a href="#4-1-书写标题编号" class="headerlink" title="4.1. 书写标题编号"></a>4.1. 书写标题编号</h4><p>许多Markdown处理器支持标题的自定义ID - 一些Markdown处理器会自动添加它们。添加自定义ID允许您直接链接到标题并使用CSS对其进行修改。要添加自定义标题ID，请在与标题相同的行上用大括号<code>&#123;自定义id&#125;</code>括起该自定义ID。<br>如本文中的二、扩展语法2.围栏代码块 后面的<code>&#123;head1&#125;</code></p>
<h4 id="4-2-链接到标题ID"><a href="#4-2-链接到标题ID" class="headerlink" title="4.2. 链接到标题ID"></a>4.2. 链接到标题ID</h4><p>通过创建带有数字符号（#）和自定义标题ID的<a href="%E8%B7%AF%E5%BE%84%E5%9C%B0%E5%9D%80">标准链接</a>，可以链接到文件中具有自定义ID的标题。<br>例如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">### [围栏代码块]&#123;#head1&#125;</span><br><span class="line">点这里去 [围栏代码块](#head1)</span><br></pre></td></tr></table></figure>
<p>点这里去 <a href="#head1">围栏代码块</a></p>
<h3 id="5-定义列表"><a href="#5-定义列表" class="headerlink" title="5. 定义列表"></a>5. 定义列表</h3><p>一些Markdown处理器允许您创建术语及其对应定义的定义列表。要创建定义列表，请在第一行上键入术语。在下一行，键入一个冒号，后跟一个空格和定义。<br>例如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">术语</span><br><span class="line">  : 这是描述</span><br><span class="line"></span><br><span class="line">第二个术语</span><br><span class="line">  : 这是第二个术语的具体描述</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<blockquote>
<dl><dt>术语</dt><dd>这是描述</dd></dl><dl><dt>第二个术语</dt><dd>这是第二个术语的具体描述</dd></dl></blockquote>
<h3 id="6-删除线"><a href="#6-删除线" class="headerlink" title="6. 删除线"></a>6. 删除线</h3><p>可以通过在单词中心放置一条水平线来删除单词。此功能使您可以指示某些单词是一个错误，并不表示要包含在文档中。若要删除单词，请<code>~~</code>在单词前后使用两个波浪号。<br>例如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">这是~~删除线~~</span><br></pre></td></tr></table></figure>
<blockquote>
<p>这是<del>删除线</del></p>
</blockquote>
<h3 id="7-任务列表"><a href="#7-任务列表" class="headerlink" title="7. 任务列表"></a>7. 任务列表</h3><p>任务列表使您可以创建带有复选框的项目列表。在支持任务列表的Markdown应用程序中，复选框将显示在内容旁边。要创建任务列表，请在任务列表项之前添加破折号<code>-</code>和方括号<code>[]</code>，并在其前面加上空格。要选择一个复选框，请在方括号<code>[]</code>之间添加x ：<code>[x]</code>。<br>例如:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">- [ ] 任务列表</span><br><span class="line">- [x] 任务二</span><br><span class="line">- [ ] 任务三</span><br></pre></td></tr></table></figure>
<ul>
<li><p><input disabled="" type="checkbox">  任务列表</p>
</li>
<li><p><input checked="" disabled="" type="checkbox">  任务二</p>
</li>
<li><p><input disabled="" type="checkbox">  任务三</p>
<h3 id="8-自动网址链接"><a href="#8-自动网址链接" class="headerlink" title="8. 自动网址链接"></a>8. 自动网址链接</h3><h4 id="8-1-自动URL链接"><a href="#8-1-自动URL链接" class="headerlink" title="8.1. 自动URL链接"></a>8.1. 自动URL链接</h4><p>许多Markdown处理器会自动将URL转换为链接，即使您未使用方括号。例如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">http:&#x2F;&#x2F;yuanchu.gitee.io&#x2F;</span><br></pre></td></tr></table></figure>
<p><a href="http://yuanchu.gitee.io/">http://yuanchu.gitee.io/</a></p>
</li>
</ul>
<h4 id="8-2-禁止自动URL链接"><a href="#8-2-禁止自动URL链接" class="headerlink" title="8.2. 禁止自动URL链接"></a>8.2. 禁止自动URL链接</h4><p>如果您不希望自动链接URL，则可以通过将URL表示为带反引号的代码来删除该链接。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&#96;http:&#x2F;&#x2F;yuanchu.gitee.io&#x2F;&#96;</span><br></pre></td></tr></table></figure>
<p><code>http://yuanchu.gitee.io/</code></p>
<h2 id="三、绘图"><a href="#三、绘图" class="headerlink" title="三、绘图"></a>三、绘图</h2><h3 id="1-时序图"><a href="#1-时序图" class="headerlink" title="1. 时序图"></a>1. 时序图</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">participant 客户端 as A</span><br><span class="line">participant 服务端 as B</span><br><span class="line">participant 通行证中心 as C</span><br><span class="line">Note over A:用户输入通行证账号、密码</span><br><span class="line">A-&gt;C: 发送账号、密码</span><br><span class="line">Note over C:验证账号、密码</span><br><span class="line">C--&gt;&gt;A:返回token</span><br><span class="line">A-&gt;B:发送token</span><br><span class="line">B-&gt;C:验证token</span><br><span class="line">C--&gt;&gt;B:验证成功</span><br><span class="line">B--&gt;&gt;A:登陆成功</span><br><span class="line">Note left of A:左边注释</span><br><span class="line">B-&gt;B:自交互</span><br><span class="line">Note right of C:右边注释</span><br></pre></td></tr></table></figure>

<h3 id="2-流程图"><a href="#2-流程图" class="headerlink" title="2. 流程图"></a>2. 流程图</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">st&#x3D;&gt;start: 开始</span><br><span class="line">io&#x3D;&gt;inputoutput: 验证</span><br><span class="line">op&#x3D;&gt;operation: 选项</span><br><span class="line">cond&#x3D;&gt;condition: 是 或 否？</span><br><span class="line">sub&#x3D;&gt;subroutine: 子程序</span><br><span class="line">e&#x3D;&gt;end: 结束</span><br><span class="line"></span><br><span class="line">st-&gt;io-&gt;op-&gt;cond</span><br><span class="line">cond(yes)-&gt;e</span><br><span class="line">cond(no)-&gt;sub-&gt;io</span><br></pre></td></tr></table></figure>
<h3 id="3-甘特图"><a href="#3-甘特图" class="headerlink" title="3. 甘特图"></a>3. 甘特图</h3><p>某些平台不支持甘特图</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">gantt</span><br><span class="line">dateFormat YYYY-MM-DD</span><br><span class="line">title 产品计划表</span><br><span class="line">section 初期阶段</span><br><span class="line">明确需求: 2017-03-01, 10d</span><br><span class="line">section 中期阶段</span><br><span class="line">跟进开发: 2017-03-11, 9d</span><br><span class="line">section 后期阶段</span><br><span class="line">抽查测试: 2017-03-20, 9d</span><br></pre></td></tr></table></figure>
                
            </div>
            <hr/>

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-user">
                        Author:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="/about" rel="external nofollow noreferrer">yuanchu</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-link">
                        Link:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="http://yuanchu.gitee.io/2021/02/09/markdown/">http://yuanchu.gitee.io/2021/02/09/markdown/</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-copyright">
                        Reprint policy:
                    </i>
                </span>
                <span class="reprint-info">
                    All articles in this blog are used except for special statements
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    reprint polocy. If reproduced, please indicate source
                    <a href="/about" target="_blank">yuanchu</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>Copied successfully, please follow the reprint policy of this article</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">more</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            <span class="chip bg-color">No tag</span>
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">
<div id="article-share">

    
    <div class="social-share" data-sites="twitter,facebook,google,qq,qzone,wechat,weibo,douban,linkedin" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
            
                <style>
    #reward {
        margin: 40px 0;
        text-align: center;
    }

    #reward .reward-link {
        font-size: 1.4rem;
        line-height: 38px;
    }

    #reward .btn-floating:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #rewardModal {
        width: 320px;
        height: 350px;
    }

    #rewardModal .reward-title {
        margin: 15px auto;
        padding-bottom: 5px;
    }

    #rewardModal .modal-content {
        padding: 10px;
    }

    #rewardModal .close {
        position: absolute;
        right: 15px;
        top: 15px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.3rem;
        line-height: 20px;
        cursor: pointer;
    }

    #rewardModal .close:hover {
        color: #ef5350;
        transform: scale(1.3);
        -moz-transform:scale(1.3);
        -webkit-transform:scale(1.3);
        -o-transform:scale(1.3);
    }

    #rewardModal .reward-tabs {
        margin: 0 auto;
        width: 210px;
    }

    .reward-tabs .tabs {
        height: 38px;
        margin: 10px auto;
        padding-left: 0;
    }

    .reward-content ul {
        padding-left: 0 !important;
    }

    .reward-tabs .tabs .tab {
        height: 38px;
        line-height: 38px;
    }

    .reward-tabs .tab a {
        color: #fff;
        background-color: #ccc;
    }

    .reward-tabs .tab a:hover {
        background-color: #ccc;
        color: #fff;
    }

    .reward-tabs .wechat-tab .active {
        color: #fff !important;
        background-color: #22AB38 !important;
    }

    .reward-tabs .alipay-tab .active {
        color: #fff !important;
        background-color: #019FE8 !important;
    }

    .reward-tabs .reward-img {
        width: 210px;
        height: 210px;
    }
</style>

<div id="reward">
    <a href="#rewardModal" class="reward-link modal-trigger btn-floating btn-medium waves-effect waves-light red">赏</a>

    <!-- Modal Structure -->
    <div id="rewardModal" class="modal">
        <div class="modal-content">
            <a class="close modal-close"><i class="fas fa-times"></i></a>
            <h4 class="reward-title">你的赏识是我前进的动力</h4>
            <div class="reward-content">
                <div class="reward-tabs">
                    <ul class="tabs row">
                        <li class="tab col s6 alipay-tab waves-effect waves-light"><a href="#alipay">支付宝</a></li>
                        <li class="tab col s6 wechat-tab waves-effect waves-light"><a href="#wechat">微 信</a></li>
                    </ul>
                    <div id="alipay">
                        <img src="/medias/reward/alipay.jpg" class="reward-img" alt="支付宝打赏二维码">
                    </div>
                    <div id="wechat">
                        <img src="/medias/reward/wechat.png" class="reward-img" alt="微信打赏二维码">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.tabs').tabs();
    });
</script>

            
        </div>
    </div>

    

    

    

    

    

    

    

    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="far fa-dot-circle"></i>&nbsp;Current
            </div>
            <div class="card">
                <a href="/2021/02/09/markdown/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/13.jpg" class="responsive-img" alt="Markdown语法基础">
                        
                        <span class="card-title">Markdown语法基础</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-02-09
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            yuanchu
                            
                        </span>
                    </div>
                </div>

                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                Next&nbsp;<i class="fas fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/2021/02/04/hello-world/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/12.jpg" class="responsive-img" alt="Hello World">
                        
                        <span class="card-title">Hello World</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2021-02-04
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            yuanchu
                            
                        </span>
                    </div>
                </div>
                
            </div>
        </div>
        
    </div>
</article>

</div>



<!-- 代码块功能依赖 -->
<script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>

<!-- 代码语言 -->

<script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>


<!-- 代码块复制 -->

<script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>


<!-- 代码块收缩 -->

<script type="text/javascript" src="/libs/codeBlock/codeShrink.js"></script>


    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget card" style="background-color: white;">
            <div class="toc-title"><i class="far fa-list-alt"></i>&nbsp;&nbsp;TOC</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <a class="btn-floating btn-large bg-color">
        <i class="fas fa-list-ul"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            collapseDepth: Number('0'),
            headingSelector: 'h2, h3, h4'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h2, h3, h4').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).hide();
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).show();
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>

    

</main>




    <footer class="page-footer bg-color">
    
        <link rel="stylesheet" href="/libs/aplayer/APlayer.min.css">
<style>
    .aplayer .aplayer-lrc p {
        
        display: none;
        
        font-size: 12px;
        font-weight: 700;
        line-height: 16px !important;
    }

    .aplayer .aplayer-lrc p.aplayer-lrc-current {
        
        display: none;
        
        font-size: 15px;
        color: #42b983;
    }

    
    .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
        left: -66px !important;
    }

    .aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
        left: 0px !important;
    }

    
</style>
<div class="">
    
    <div class="row">
        <meting-js class="col l8 offset-l2 m10 offset-m1 s12"
                   server="netease"
                   type="playlist"
                   id="503838841"
                   fixed='true'
                   autoplay='false'
                   theme='#42b983'
                   loop='all'
                   order='random'
                   preload='auto'
                   volume='0.7'
                   list-folded='true'
        >
        </meting-js>
    </div>
</div>

<script src="/libs/aplayer/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>

    
    <div class="container row center-align" style="margin-bottom: 0px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            
                <span id="year">2021</span>
            
            <span id="year">2021</span>
            <a href="/about" target="_blank">yuanchu</a>
            |&nbsp;Powered by&nbsp;<a href="https://hexo.io/" target="_blank">Hexo</a>
            |&nbsp;Theme&nbsp;<a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
            <br>
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <br>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">














</div>
    </div>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;Search</span>
            <input type="search" id="searchInput" name="s" placeholder="Please enter a search keyword"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script type="text/javascript">
$(function () {
    var searchFunc = function (path, search_id, content_id) {
        'use strict';
        $.ajax({
            url: path,
            dataType: "xml",
            success: function (xmlResponse) {
                // get the contents from search data
                var datas = $("entry", xmlResponse).map(function () {
                    return {
                        title: $("title", this).text(),
                        content: $("content", this).text(),
                        url: $("url", this).text()
                    };
                }).get();
                var $input = document.getElementById(search_id);
                var $resultContent = document.getElementById(content_id);
                $input.addEventListener('input', function () {
                    var str = '<ul class=\"search-result-list\">';
                    var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                    $resultContent.innerHTML = "";
                    if (this.value.trim().length <= 0) {
                        return;
                    }
                    // perform local searching
                    datas.forEach(function (data) {
                        var isMatch = true;
                        var data_title = data.title.trim().toLowerCase();
                        var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                        var data_url = data.url;
                        data_url = data_url.indexOf('/') === 0 ? data.url : '/' + data_url;
                        var index_title = -1;
                        var index_content = -1;
                        var first_occur = -1;
                        // only match artiles with not empty titles and contents
                        if (data_title !== '' && data_content !== '') {
                            keywords.forEach(function (keyword, i) {
                                index_title = data_title.indexOf(keyword);
                                index_content = data_content.indexOf(keyword);
                                if (index_title < 0 && index_content < 0) {
                                    isMatch = false;
                                } else {
                                    if (index_content < 0) {
                                        index_content = 0;
                                    }
                                    if (i === 0) {
                                        first_occur = index_content;
                                    }
                                }
                            });
                        }
                        // show search results
                        if (isMatch) {
                            str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                            var content = data.content.trim().replace(/<[^>]+>/g, "");
                            if (first_occur >= 0) {
                                // cut out 100 characters
                                var start = first_occur - 20;
                                var end = first_occur + 80;
                                if (start < 0) {
                                    start = 0;
                                }
                                if (start === 0) {
                                    end = 100;
                                }
                                if (end > content.length) {
                                    end = content.length;
                                }
                                var match_content = content.substr(start, end);
                                // highlight all keywords
                                keywords.forEach(function (keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    match_content = match_content.replace(regS, "<em class=\"search-keyword\">" + keyword + "</em>");
                                });

                                str += "<p class=\"search-result\">" + match_content + "...</p>"
                            }
                            str += "</li>";
                        }
                    });
                    str += "</ul>";
                    $resultContent.innerHTML = str;
                });
            }
        });
    };

    searchFunc('/search.xml', 'searchInput', 'searchResult');
});
</script>

    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    <script src="/libs/others/clicklove.js" async="async"></script>
    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    <!--腾讯兔小巢-->
    
    

    

    

    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
